package com.outstanding.his.entity.service;

import java.io.Serializable;
import java.util.List;

import com.outstanding.his.util.pager.Pagination;

public interface IEntityService<T> {

	public Object getEntity(Serializable entityId);

	public Pagination pagedEntityQuery(String hql, int pageNo, int pageSize,
			Object[] parameters);

	public Pagination pagedEntityQuery(String hql, int pageNo, int pageSize,
			int pageSpan, Object[] parameters);

	public List<T> listEntity(String query, int firstIndex, int pageSize,
			Object[] parameters);

	public List<T> listAllEntity();

	public void saveEntity(Object object);

	public void removeEntity(Object object);

	public void removeEntityById(Serializable entityId);

	public Integer getEntityCount();
}
